//
//  YbrDlnaPlayer.h
//  wifibox
//
//  Created by os X 10.9 on 15-1-14.
//  Copyright (c) 2015年 yinbaner. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YbrMusicItem.h"

#define PlayListChange @"play_list_change"  // 播放列表发生改变


@interface YbrDlnaPlayer : NSObject

@property(nonatomic,assign)int lastTime;

+(YbrDlnaPlayer *) getInstance;

-(void) playAll:(NSArray *) musiclist position:(int) position;  // 添加了一个播放哪一个

-(void) PsuhPlayUrl:(NSString *) url;
// 这个方法是获取设备当前的状态()
-(void) getDeviceDlnaPlayInfo;

-(void) checkPlayListUrlIsChange:(NSString *) url;

-(void) sendDlnaPlayChange;
-(void) stopGetInfo;
-(void) startGetInfo;

// 返回Arr : 音频的ID(传递的列表的和当前的列表是否一样)
-(BOOL) isAlike:(NSArray *) musiclist;

// 返回Arr : YbrMusicItem 正在播放的Item
-(YbrMusicItem *) getQueueItem;

-(NSString *) getArtistName;
-(NSString *) getSingerName;
-(NSString *) getMusicName;

-(int) getDuration;
-(int) getPoisiton;

-(void) setQueuePosition:(int) index;
-(NSString *) getBitmap;
-(BOOL) isPlaying;
-(int) getQueuePosition;
// 正在播放的音频的ID
-(int) getAudioId;

-(void) Next;
-(void) Prev;
-(void) PlayOrPause;
-(void) Play ;
-(void) stop;
-(void) seek:(NSTimeInterval) pos;
-(float) getVolum;
-(void) setVolum:(float) value;
-(BOOL) isHaveMusic;
-(BOOL) getIsTime;
-(NSString *) getPlayTimeID;

-(BOOL) posIsEqu:(int) position ID:(NSString *) ID;

@end
